<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTablePays extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('pays', function (Blueprint $table) {
            $table->increments('pid');              //自增ID
            $table->integer('id')->unsigned();      //用户ID
            $table->date('pay_time');               //充值时间
            $table->integer('pay_money')->unsigned();//充什金额，可以按分计算
            $table->char('pay_result',10);           //充值结果
            $table->integer('pay_remain');           //用户余额，可以按分计算
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('pays');
    }
}
